a = int(input())
print('%X' % (a))
